<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        .main{
            height: 300px;
            background-color: skyblue;
            display: flex;
        }


        .main div:nth-child(3){
            margin-right: auto;
        }


        .main div:nth-child(7){
            margin-right: auto;
        }

        .box{
            width: 100px;
            height: 100px;
            background-color: red;
            border-radius: 50%;
        }

    </style>
</head>
<body>
<div class="main">
    <div class="box">1</div>
    <div class="box">2</div>
    <div class="box">3</div>
    <div class="box">4</div>
    <div class="box">5</div>
    <div class="box">6</div>
    <div class="box">7</div>
    <div class="box">8</div>
    <div class="box">9</div>
Ï</div>
</body>
</html>
